﻿using myAC.DataProviders;
using myAC.PreProcessing.DocLevel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myAC.FeatureVector
{
    public class FeatureVectorGenerator
    {
        public void GenerateFeatureVectors(List<SR> srs)
        {
            //doc level preprocessing
            Parallel.ForEach(srs, (sr) =>
            {
                sr.ProcessedExternalTitle = DocLevelPipeline.Process(sr.RawExternalTitle);
                sr.ProcessedBody = DocLevelPipeline.Process(sr.RawBody);
            });
        }
    }
}
